#include "mainwindow.h"

#include <QtGui/QApplication>

#include "globalStructs.h"
#include "cusernetwork.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    MainWindow mainWindow;
    mainWindow.setOrientation(MainWindow::ScreenOrientationAuto);
    mainWindow.showExpanded();

    CUserNetwork network;


    QString urlString[4];
    urlString[0] = "&api_key=e36784df8a03fea04c22ed93318b291c";
    urlString[1] = "&lat=52.50568190";
    urlString[2] = "&lon=13.32320270";
    urlString[3] = "&page=1";


    network.request(CLIENT_SERVER_ORDER, "api.flickr.com/services/rest/?min_taken_date=2000-01-01+0:00:00&extras=date_taken&method=flickr.photos.search&per_page=30&sort=date-taken-desc",
                    urlString, 4);

    return app.exec();
}
